from langchain_core.tools import tool
from langchain_core.tools import BaseTool
from langchain_community.tools.file_management import ReadFileTool, ListDirectoryTool, FileSearchTool, WriteFileTool
import os

from langdev_tools.calc import multiply, add, exponentiate

@tool
def CwdTool():
    """Returns the current working directory"""
    return os.getcwd()

tools = [
    multiply, add, exponentiate, CwdTool, 
    ReadFileTool(), ListDirectoryTool(), FileSearchTool(), WriteFileTool()
]